約 5,763,431 件
https://w.atwiki.jp/m_shige1979/pages/812.html
基本文法 文法 ?php require_once( mpdf50/mpdf.php ); $html = " div Hello World /div br / table border=\"1\" tr td aaa /td td bbb /td /tr tr td ccc /td td ddd /td /tr /table br / b テスト /b "; // 生成 $mpdf = new mPDF( ja , A4 , 10, , 10, 10, 10, 10, 5, 5); // HTML設定 $mpdf- WriteHTML($html); // PDF表示モード $mpdf- SetDisplayMode( fullpage , single ); // PDF表示 $mpdf- Output(); exit; ? test_mpdf1.pdf
https://w.atwiki.jp/ddr_dp/pages/1773.html
Nostalgia Is Lost(楽) 曲名 アーティスト フォルダ 難易度 BPM NOTES/FA(SA) その他 Nostalgia Is Lost U1 overground 2014 楽7 172 245 / 23 STREAM VOLTAGE AIR FREEZE CHAOS 39 35 21 58 0 楽譜面(7) / 踊譜面(11) / 激譜面(15) / 鬼譜面(-) 属性 渡り、遠配置、縦連 譜面 https //livedoor.blogimg.jp/yanmar195/imgs/6/e/6ea82303.png 譜面動画 https //www.youtube.com/watch?v=Pp_RthBMPOI (x1.0, NOTE) プレイ動画 https //www.youtube.com/watch?v=Fh_zBn6-NME (x2.0, NOTE) 解説 4分メインだが、同時が渡りながらかつ遠い配置なので取り方に一手間必要。ラストに右足8分縦3連が数セット来るので注意 -- 名無しさん (2014-07-27 00 28 18) 名前 コメント コメント(私的なことや感想はこちら) 名前 コメント
https://w.atwiki.jp/succulents/pages/81.html
このページはhttp //www.bclocalnews.com/vancouver_island_north/northislandmidweek/lifestyles/24031484.htmlからの引用です Thursday, 7/10/2008 4 02 pm Spectacular succulents like it dry By Christine Scott - North Island MidWeek - July 07, 2008 Photograher Jim Dubois found this luscious clump of wild Oregon stonecrop growing in cement near the Campbell River freshwater marina. Stonecrop’s plump foliage may be green or richly bronzed in colour. (JD stonecrop 2.jpg) The plump, fleshy leaves of Oregon stonecrop allow it to endure hot, dry conditions. (JD stonecrop macro.jpg) Microscopic red spider mites feast on succulent stonecrop flowers. Photos by Jim Dubois Mention the word “succulent” and plants might not be the first thing that springs to mind. A juicy steak...now that’s succulent. Still, with water-savings such a hot topic these days, it might be time to consider the virtues of succulent plants. Succulent is the name given to a variety of juicy plants belonging to a variety of plant families. Some of the better-known succulents include aloe, cactus, agave and yucca, but not all succulents are cacti. Plant succulence is an evolutionary modification to extreme heat and a dry, arid environment. One family of wild native plants – stonecrops – may be found growing in the most inhospitable environs in a pavement crack, a pile of concrete, a gravel heap, a rocky slope or seaside in a thimbleful of sand. Stonecrops (sedums) are succulent plants possessing pudgy, swollen leaves filled with juice; this adaptation allows the plant to retain and store water over long periods of time. The star-shaped golden flowers, resembling saxifrage, are literally dew-kissed, filled with juicy nectar. Nectar-seeking fauna such as butterflies must think they’ve found the land of milk and honey upon finding stonecrop. Thirsty red spider mites (Tetranychus urticae) thrive on stonecrop juice. In the Pacific Northwest, four Sedums are commonplace Oregon stonecrop, spreading stonecrop, broad-leaved stonecrop and lance-leaved stonecrop. All grow as perennials on ledges, rocky ridges, scree outcrops or other dry open sites. Long ago, sedums were nicknamed “live-long” because they remain fresh long after they are picked. “Sedum” comes from the Latin “sedeo,” to sit, referring to the succulents’ squatty habit of attaching to stones and rocks. The name “stonecrop” derives from an Old English word meaning “that which is gathered off stones.” The future looks bright for our beloved stonecrops. Due to their ability to withstand heat and retain water, stonecrops rushed to the forefront of the “green” rooftop movement, along with a variety of BC native plants including wild onions, brodiaea, common camas lilies and bearberry. The benefits of a planted roof are many thermal insulation, improved air quality, reduced urban heat, and deflection of noise. Plants in soil return moisture to the atmosphere through the processes of evaporation and transpiration. Possibly the number-one reason to take green living to the rooftops is to create habitat and refuge for flora and fauna. Butterflies, ladybugs and other wildlife flock to lush rooftop gardens; this ecological compensation cannot be underestimated, particularly within our concrete jungles. Long before the concept of green rooftops, First Nations groups ate stonecrop to alleviate thirst and hunger, and some stonecrops are still cultivated for food use in Holland. As a salad green, stonecrop is said to be peppery, thus another nickname “wall-pepper.” Gardeners know stonecrops as attractive, hardy plants, non-invasive and tidy, that will grow in a hot spot without care in barely a speck of sand. These rock-hugging perennials with starry yellow flowers will surely be valued more and more as the precious resource of water becomes increasingly scarce. Christine’s trail guides “Nature Campbell River” and “Nature Strathcona” are available at Save-on Foods and local bookstores. E-mail wildernesswest@shaw.ca
https://w.atwiki.jp/seisoku-index/pages/390.html
御坂妹「上条さんがMNWにスレを立ててますよ」(短編) 御坂妹「ミサカじゃダメですか?」等々(短編)(オムニバス) 御坂妹「MNWに一般の方が接続されるそうです」 (短編)(オムニバス) 御坂妹「私......あなたのことが好き」(短編) 上条「不運と幸運、不幸と…何だ?」(短編)②③ 美琴「お願い!今日一日でいいから、私の“代わり”になってくれない?」(短編)
https://w.atwiki.jp/ddr_dp/pages/1774.html
Nostalgia Is Lost(踊) 曲名 アーティスト フォルダ 難易度 BPM NOTES/FA(SA) その他 Nostalgia Is Lost U1 overground 2014 踊11 172 371 / 34 STREAM VOLTAGE AIR FREEZE CHAOS 59 57 30 68 16 楽譜面(7) / 踊譜面(11) / 激譜面(15) / 鬼譜面(-) 属性 渡り、交互難、同時踏み、フリーズアロー、トラボルタ 譜面 https //livedoor.blogimg.jp/yanmar195/imgs/2/3/2322e9ef.png 譜面動画 http //www.nicovideo.jp/watch/sm41453177 https //www.nicovideo.jp/watch/sm41453177 (x1.0, NOTE) プレイ動画 https //www.youtube.com/watch?v=4_C2D-mnL5k (x2.0, NOTE) https //www.youtube.com/watch?v=UEYbdwMECJ0 (x2.5, NOTE) 解説 踏みにくさに特化した、かなり珍しい譜面。縦連同時2セット、裏拍トラボルタから付点5連、後ろ交差8分5連からFA、同単の繰り返しはチュンリー推奨配置など嫌らしい要素が満載。ラストの縦2連混じりの8分滝は全スイッチじゃないのもまた嫌らしい。非リズム難ながら、初見緑FCは不可能と言って良い -- 名無しさん (2014-07-27 00 32 31) 名前 コメント コメント(私的なことや感想はこちら) 後半の縦2連絡みの交互難等かなり特殊な配置。中央、左右の体勢リセットやチュンリーを駆使した研究しがいのある譜面。でもあんまやりたくない系 -- 名無しさん (2014-07-27 10 48 20) Follow Tomorrowと同じくなかなか光らない -- 名無しさん (2014-07-27 12 43 28) 踊ブリューと同じく同時FA 4分の箇所はFAガン無視チュンリーが楽 -- 名無しさん (2014-07-27 12 53 16) 終盤にさりげなくDROP THE BOMB(激)の譜面が引用されてる気がする。スイッチも含め、そちらで練習すると良いかと。 -- 名無しさん (2015-02-10 02 33 33) 嫌らしい配置が満載すぎる。ダブルの練習にはなるが難易度は11を逸脱していると思う -- 名無しさん (2016-01-15 19 24 07) ビックリ遠配置みたいなものはなく、なんというか正統派な難しさがあって、足11の大ボスみたいな威厳がある。適正レベルだとまずまともには踏めない気がするが、個人的には超良譜面 -- 名無しさん (2021-07-06 20 30 23) 名前 コメント
https://w.atwiki.jp/atwikipedia/pages/16.html
{{出典の明記}} 健康 (けんこう、{{lang-en-short|Health}})は、病気などがなく、心身が健やかな状態であること。 == 概念 == 健康の概念は、1948年の設立における世界保健機関憲章の前文にある、以下の定義が有名である。 blockquote 身体的・精神的・社会的に完全に良好な状態であり、たんに病気あるいは虚弱でないことではない ref 昭和26年官報掲載の日本語訳。原文は Health is a state of complete physical, mental and social well-being and not merely the absence of disease or infirmity. [http //www.who.int/governance/eb/who_constitution_en.pdf 世界保健機関憲章](世界保健機関) /ref 。 /blockquote この定義には、健康に関連する権利が不可分かつ相互依存であることを示している ref Health Hum Rights. 1994 Fall;1(1) 24-56. The right to health in international human rights law. /ref ref Health Hum Rights. 1999;4(1) 6-25. The right to health fifty years on still skeptical? /ref ref Toebes B. The Right to Health as a Human Right in International Law (1999) Antwerpen /ref 。 世界保健機関は1999年の総会で健康の定義として以下の定義を提案している。強調は1948年との変更箇所(原文に強調はない)。 blockquote 健康とは身体的・精神的・霊的・社会的に完全に良好な動的状態であり、たんに病気あるいは虚弱でないことではない ref 原文は Health is a dynamic state of complete physical, mental, spiritual and social well-being and not merely the absence of disease or infirmity. [http //www.who.int/bulletin/bulletin_board/83/ustun11051/en/ 「健康」の再定義](世界保健機関) /ref 。 /blockquote 身体的な健康の概念は生物医学模型により説明され、恒常性(ホメオスタシス)が維持されていることを根幹とする{{要出典}}。すなわち、健康な状態では、身体に起こった状態変化が打ち消される方向の生理作用が働いている。この仕組みが破綻した場合、または許容量を超えるような状態変化が起こった場合が、医療の必要な状態であると解釈できる。この許容量は予備能と呼ばれる。 社会的な健康の概念は、健康の社会的決定要因により説明される。すなわち、裕福で、富の分布が公平な社会にすむ人たちは、健康である ref [http //www.phac-aspc.gc.ca/ph-sp/phdd/determinants/determinants.html なにが健康を決定しているのか?](カナダ公衆衛生機関) /ref 。また、どのような社会においても、社会的地位が低いと、平均寿命は短く、疾病が蔓延している ref name="solidfacts" [http //www.euro.who.int/document/e81384.pdf 健康の社会的決定要因 ソリッドファクツ](世界保健機関) /ref 。 == 健康観 == 健康観(けんこうかん、Health View )とは、健康に関する価値観・価値基準の事である{{要出典}}。医学・福祉に従事する者は、健康を医科学的側面と価値観的側面の両立を成しえてこそ維持されるものであり、その点で健康観的な研究、あるいは知識を身につける。 健康観は、個々人が持つものであるが、それはその人の社会的属性・人的属性により異なり、変化するものである。社会的属性とは、会社、学校、地域、国、文化などであり、人的属性とは性別、年齢、身体状態などである。 健康観の研究は、多分野によるアプローチが行われている。健康観の研究は、医科学的な分野ではない。文化学的、学際的要因と関連がある。そのため、これに研究従事する人々の属する分野は様々である。 == 健康の前提条件 == 健康づくりのためのオタワ憲章では、健康を達成するための前提条件が明示された ref name="ottawacharter" [http //www.who.int/healthpromotion/conferences/previous/ottawa/en/index.html 健康づくりのためのオタワ憲章]、[http //www.who.int/hpr/NPH/docs/ottawa_charter_hp.pdf PDF形式](世界保健機関) /ref 。 # 平和 # 住居 # 教育 # 食糧 # 収入 # 安定した環境 # 持続可能な開発|持続可能な資源 # 社会的公正と公平 これらの健康の前提条件は、1998年に健康の社会的決定要因として整理されている ref name="solidfacts" [http //www.euro.who.int/document/e81384.pdf 健康の社会的決定要因 ソリッドファクツ](世界保健機関) /ref 。 == 健康権 == 世界保健機関は、憲章にて「達成可能な最上級の健康水準を楽しむことは、人種、信条、政治理念、経済的社会的状況に関わらず、全人類の基本的権利の1つである」と宣言している ref name="who_constitution" [http //www.who.int/governance/eb/who_constitution_en.pdf 世界保健機関憲章](世界保健機関) /ref 。 1980年代から、国際連合などいくつかの団体は、健康と人権との関係から、その国際的責任は、別々ではなく、1つのものであると認識するようになってきている ref Health and human rights. Health Hum Rights. 1994 Fall;1(1) 6-23. PMID 10395709 /ref 。 経済的、社会的及び文化的権利に関する国際規約(A規約)では、健康権は「達成できる最高水準の身体的精神的健康」であると説明されており、政府の義務は、健康の前提条件の整備と医療の提供の両方からなると理解される ref [http //www.mofa.go.jp/mofaj/gaiko/kiyaku/2b_004.html 経済的、社会的及び文化的権利に関する国際規約(A規約)]([http //www.mofa.go.jp/mofaj/index.html 外務省]) /ref 。 以下は、A規約で健康権を説明するとされる第十二条である。 # この規約の締約国は、すべての者が到達可能な最高水準の身体及び精神の健康を享受する権利を有することを認める。 # この規約の締約国が1の権利の完全な実現を達成するためにとる措置には、次のことに必要な措置を含む。 ## 死産率及び幼児の死亡率を低下させるための並びに児童の健全な発育のための対策 ## 環境衛生及び産業衛生のあらゆる状態の改善 ## 伝染病、風土病、職業病その他の疾病の予防、治療及び抑圧 ## 病気の場合にすべての者に医療及び看護を確保するような条件の創出 日本弁護士連合会は、健康権について、憲法の基本的人権に由来し、すべての国民に等しく全面的に保障され、なにびともこれを侵害することができないものであり、本来、国・地方公共団体、さらには医師・医療機関等に対し積極的にその保障を主張することのできる権利である、としている ref [http //www.nichibenren.or.jp/ja/opinion/hr_res/1980_1.html 人権擁護大会宣言・決議集 Subject 1980-11-08「健康権」の確立に関する宣言](日本弁護士連合会) /ref 。 == 脚注 == {{Reflist}} == 関連項目 == {{Wiktionary|健康}} 健康づくり 健康づくり国際会議 健康の社会的決定要因 健康法 健康心理学 健康教育 健康局 健康増進法 ウエルネス 健康管理システム(インターネットを利用した健康管理システム、サービス) 健康ブーム/健康食品 医療/介護/福祉/衛生 医療社会学/生命倫理学 == 外部リンク == {{SEP|health-disease|Concepts of Disease and Health|スタンフォード哲学百科事典にある「病と健康の概念」についての項目}} {{DEFAULTSORT けんこう}} Category 健康|*けんこう Category 労働安全 Category 労働災害 Category 生命倫理学 {{Medical-stub}} !--Category 医療医療カテゴリの上位が健康カテゴリになっています。-- an Salut ar صحة be Здароўе bg Здраве bm Kɛnɛya bn স্বাস্থ্য bpy সাউডে br Yec hed bs Zdravlje ca Salut ceb Kahimsog cs Zdraví cv Сывлăх cy Iechyd da Sundhed de Gesundheit el Υγεία en Health eo Sano es Salud et Tervis eu Osasun fa تندرستی fi Terveys fr Santé fur Sanitât gd Slàinte gl Saúde he בריאות hi स्वास्थ्य hr Zdravlje ht Lasante hu Egészség ia Sanitate id Kesehatan is Heilsa it Salute jv Kaséhatan ka ჯანმრთელობა kl Peqqinneq kn ಆರೋಗ್ಯ ko 건강 la Salus li Gezóndheid lt Sveikata lv Veselība mk Здравје ml ആരോഗ്യം mr आरोग्य ms Kesihatan mwl Salude nl Gezondheid nn Helse no Helse pl Zdrowie ps روغتيا pt Saúde qu Qhali kay ro Sănătate ru Здоровье scn Saluti sco Heal sh Zdravlje si සෞඛ්යය simple Health sk Zdravie sl Zdravje sr Здравље sv Hälsa ta நலம் th สุขภาพ tl Kalusugan tr Sağlık uk Здоров я ur صحت vi Sức khỏe war Maupay nga panlawas yi געזונטהייט zea Gezondeid zh 健康
https://w.atwiki.jp/php4u/pages/11.html
PHPをダウンロード&配置 Windows上ではApacheにPHPのインスインストーラーからの簡易インストールでOK。同時にMySQL等のデータベース導入がお勧め。
https://w.atwiki.jp/zitaku_server/pages/14.html
2013/6/4 Apache 2.2系 の説明。 インストール [root@server ~]# yum -y install httpd ← httpdインストール [root@server ~]# yum -y install php php-mbstring ← php、php-mbstringインストール 設定 Apacheの設定ファイルは/etc/httpd/conf/httpd.confだ。これを編集して、CGIの許可、.htaccessの許可、ドキュメントルートの指定などを設定できる。 [root@server ~]# vi /etc/httpd/conf/httpd.conf ← httpd設定ファイル編集 ServerTokens OS ↓ ServerTokens Prod ← エラーページ等でOS名を表示しないようにする #ServerName www.example.com 80 ↓ ServerName server.local 80 ← サーバー名を指定(/etc/hostsファイルに記述している任意の名前) Directory "/var/www/html" # # Possible values for the Options directive are "None", "All", # or any combination of # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn t give it to you. # # The Options directive is both complicated and important. Please see # http //httpd.apache.org/docs-2.0/mod/core.html#options # for more information. # Options Indexes FollowSymLinks ↓ Options Includes ExecCGI FollowSymLinks ← CGI,SSIの許可 # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords # Options FileInfo AuthConfig Limit # AllowOverride None ↓ AllowOverride All ← .htaccessの許可 # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined ↓ LogFormat "%h %l %u %t \"%!414r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined ← 長すぎるURI(414エラー)はログに記録しない # # For a single logfile with access, agent, and referer information # (Combined Logfile Format), use the following directive # SetEnvIf Request_URI "default\.ida" no_log ← 追加(wormからのアクセスをログに記録しない) SetEnvIf Request_URI "cmd\.exe" no_log ← 〃 SetEnvIf Request_URI "root\.exe" no_log ← 〃 SetEnvIf Request_URI "Admin\.dll" no_log ← 〃 SetEnvIf Request_URI "NULL\.IDA" no_log ← 〃 SetEnvIf Remote_Addr 192.168.1 no_log ← 追加(内部からのアクセスをログに記録しない) SetEnvIf Remote_Addr 127.0.0.1 no_log ← 追加(自ホストからのアクセスをログに記録しない) CustomLog logs/access_log combined env=!no_log ← 上記以外のアクセスをログに記録する ServerSignature On ↓ ServerSignature Off ← エラーページでサーバー情報を表示しないようにする AddDefaultCharset UTF-8 ↓ #AddDefaultCharset UTF-8 ← コメントアウト(文字化け対応) #AddHandler cgi-script .cgi ↓ AddHandler cgi-script .cgi .pl ← CGIスクリプトに.plを追加 Directory "/var/www/icons" Options Indexes MultiViews ↓ Options MultiViews ← iconsディレクトリのファイル一覧を表示しないようにする AllowOverride None Order allow,deny Allow from all /Directory 起動 [root@server ~]# /etc/rc.d/init.d/httpd start ← httpd起動 httpd を起動中 [ OK ] [root@server ~]# chkconfig httpd on ← httpd自動起動設定 ポート開放 開放ポート:80 インターネット側IP:グローバルIP(自動) LAN側IP:192.168.11.10(このマシンのIP) テスト htmlのテスト [root@server ~]# vi /var/www/html/index.html html head meta http-equiv="Content-Type" content="text/html; charset=UTF-8" title テスト /title /head body テスト /body /html http //サーバー名(例:hogehoge.com)/ でアクセス cgiのテスト [root@centos ~]# vi /var/www/html/test.cgi #!/usr/local/bin/perl print "Content-type text/html\n\n"; print " html \n"; print " head \n"; print " meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" \n"; print " title テスト /title \n"; print " /head \n"; print " body \n"; print "CGIのテスト\n"; print " /body \n"; print " /html \n"; [root@server ~]# chmod 755 /var/www/html/test.cgi ← パーミッション変更 http //サーバー名(例:hogehoge.com)/test.cgi でアクセス phpのテスト [root@server ~]# vi /var/www/html/test.php ?php phpinfo(); ? http //サーバー名(例:hogehoge.com)/test.php でアクセス phpのshort_open_tagの有効化 phpプログラム内で、phpタグの短縮型 ( ? ? ) を使用可能にするかどうかを設定する。php5.4.0より前では、これを有効にしなければ短縮形は使えない。 [root@server ~]# vi /etc/php.ini ; This directive determines whether or not PHP will recognize code between ; ? and ? tags as PHP source which should be processed as such. It s been ; recommended for several years that you not use the short tag "short cut" and ; instead to use the full ?php and ? tag combination. With the wide spread use ; of XML and use of these tags by other languages, the server can become easily ; confused and end up parsing the wrong code in the wrong context. But because ; this short cut has been a feature for such a long time, it s currently still ; supported for backwards compatibility, but we recommend you don t use them. ; Default Value On ; Development Value Off ; Production Value Off ; http //www.php.net/manual/en/ini.core.php#ini.short-open-tag short_open_tag = Off ↓ short_open_tag = On http //jp2.php.net/manual/ja/ini.core.php#ini.short-open-tag http //detail.chiebukuro.yahoo.co.jp/qa/question_detail/q12108361842 バーチャルホスト化 一つの IP アドレスでいくつかの名前ベースのウェブサイトを実行する。ここでは、例として以下のような構成とする。 1つ目のサイト: /var/www/html/virtual_hoge1/ サーバー名:hogehoge.com 2つ目のサイト: /var/www/html/virtual_hoge2/ サーバー名:piyopiyo.com [root@server ~]# vi /etc/httpd/conf/httpd.conf ← Apache設定ファイル編集 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn t have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName centossrv.com 80 ← 行頭に#を追加してコメントアウト # # Use name-based virtual hosting. # NameVirtualHost * 80 ← コメント解除 # # NOTE NameVirtualHost cannot be used without a port specifier # (e.g. 80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # ~~~~~~~~ 中略 ~~~~~~~~~~~ # ファイル最後尾に以下を追記 VirtualHost * 80 ServerName any Location / Order deny,allow Deny from all /Location /VirtualHost VirtualHost * 80 DocumentRoot /var/www/html/virtual_hoge1 ServerName hogehoge.com ErrorLog logs/hoge1-error_log CustomLog logs/hoge1-access_log combined env=!no_log # Other directives here /VirtualHost VirtualHost * 80 DocumentRoot /var/www/html/virtual_hoge2 ServerName piyopiyo.com ErrorLog logs/hoge2-error_log CustomLog logs/hoge2-access_log combined env=!no_log # Other directives here /VirtualHost /var/www/html/内の .htaccessを削除する。 [root@server ~]rm -f .htaccess /var/www/html/virtual_hoge1 と /var/www/html/virtual_hoge2を作成する [root@server ~]mkdir /var/www/html/virtual_hoge1 [root@server ~]mkdir /var/www/html/virtual_hoge2 あとはこれらのディレクトリの中にhtmlとかを入れればおk パーミッション755を忘れずに。
https://w.atwiki.jp/swdp2p2/pages/13.html
PHP基礎知識文字列の結合 関数定義 条件文のtrueとfalseの省略記述 MDB2データベースへの接続 データの取得 データの書換え 検出数 暗号化hash関数 crypt関数 セッションセッションの基本 SmartySmarty基本 PHP 基礎知識 文字列の結合 ?php $a = "ポアソン" ; $b = "分布" ; // $aと$bを結合する $c = $a . $b; // 結果の出力 print($c); ? 文字列を結合するには.(ドット)を用います。文字列の結合は複数でも可能です。 出力結果ポアソン分布 関数定義 関数はfunction 関数名(引数){記述文}で定義できます。 返り値の型がない代わりにfunctionがついたC言語の関数と考えれば特に難しくはありません。 関数の例は以下のとおりです。 ?php // 文字列の出力関数 function Disp($string) { print($string);} // 文字列を返す関数 function GetString() { $string = "GetStringの文字列" return $string;} ? 条件文のtrueとfalseの省略記述 システムにより依存はありますが、基本的にtrue = 0以外, false = 0です。 if文などでよく if($isExist){...} などと変数名(ここでいう$isExist)のみの記述があります。 これは、$isExistがtrueならば実行すると言う意味です。 この意味はwhile文の無限ループを思い出してもらえれば簡単だと思います。 無限ループは、while(1){...} のように記述します。別に条件文が1である必要はありません。0以外の数値であればよいのです。 つまり、これはwhile(true)を意味しています。 ですので、$isExistがtrueの場合、if($isExist){...} は if(true){...}と解釈されます。 MDB2 データベースへの接続 ?php // ライブラリの読込み require_once "MDB2.php" ; // データベースへ接続 $mdb2 = MDB2 connect( "mysql //ユーザ名 パスワード@ホスト/データベース名" ); // エラー処理 if(PEAR isError($mdb2)) { die($mdb2- getMessage()); } // データベースへの接続を切る $mdb2- disconnect(); ? データの取得 ?php // ライブラリの読込み require_once "MDB2.php" ; // データベースへ接続 $mdb2 = MDB2 connect( "mysql //ユーザ名 パスワード@ホスト/データベース名" ); // エラー処理 if(PEAR isError($mdb2)) { die($mdb2- getMessage()); } // クエリを実行 $res = $mdb2- query( "SELECT * FROM データベース名" ); // エラー処理 if(PEAR isError($res)) { die($res- getMessage()); } // テーブルの最初の要素を出力する while( ($row = $res- fetchRow()) ) { print($row[0]. " br " ); } // データベースへの接続を切る $mdb2- disconnect(); ? テーブルの要素を求めるにはqueryを使用します。 $res = $mdb2- query("SELECT 必要な情報を取り出す記述"); 上記の例では全ての要素を取り出しています。 また、while文では1行ずつ要素を取り出し、1列目の要素を出力しています。 この配列の表記法($row[0],$row[4]等)の他に、文字列による表記法も存在します。 これを連想配列といいます($row["angle"], $row["apple"]等)。 // テーブルの最初の要素を出力する while( ($row = $res- fetchRow(MDB2_FETCHMODE_ASSOC)) ) { print($row[ "id" ]. " br " ); } データベースの行の要素を連想配列で取り出す場合は、$res- fetchRow()の引数にMDB2_FETCHMODE_ASSOCをいれます。 引数を指定しない場合は、デフォルトとしてMDB2_FETCHMODE_ORDERED が入ります。 この他に、MDB2_FETCHMODE_OBJECTとすることでオブジェクトとして要素を取り出せます。 // テーブルの最初の要素を出力する while( ($row = $res- fetchRow(MDB2_FETCHMODE_OBJECT)) ) { print($row- id. " br " ); } データの書換え ?php // ライブラリの読込み require_once "MDB2.php" ; // データベースへ接続 $mdb2 = MDB2 connect( "mysql //ユーザ名 パスワード@ホスト/データベース名" ); // エラー処理 if(PEAR isError($mdb2)) { die($mdb2- getMessage()); } // データベースの内容を変更する $sql = "update データベース名 set カラム = " . $mdb2- quote(セットしたい値, 型 ) . "WHERE 条件"; $res = $mdb2- exec($sql); // エラー処理 if(PEAR isError($res)) { die($res- getMessage()); } // データベースへの接続を切る $mdb2- disconnect(); ? 検出数 ?php // ライブラリの読込み require_once "MDB2.php" ; // データベースへ接続 $mdb2 = MDB2 connect( "mysql //ユーザ名 パスワード@ホスト/データベース名" ); // エラー処理 if(PEAR isError($mdb2) ) { die($mdb2- getMessage() );} // クエリを実行 $res = $mdb2- query( "SELECT * FROM データベース名 WHERE 条件" ); // エラー処理 if(PEAR isError($res) ) { die($res- getMessage() );} // 検出数を出力 print( "条件に合致したものは" . $res- numRows() . "個でした" ); // データベースへの接続を切る $mdb2- disconnect();? 暗号化 hash関数 ?php // 文字列をハッシュ関数で暗号化 $hsh = hash( "アルゴリズム" , "文字列" ); // 結果を出力 print($hsh);? hashで使用できるアルゴリズムは、hash_algos()で見ることができる。 また、sha1やmd5については突破方法や効率の良い攻撃法が見つかっているため使用は避けた方がよい。 hash_algos()の出力結果は以下である。 Array ( [0] = md4 [1] = md5 [2] = sha1 [3] = sha256 [4] = sha384 [5] = sha512 [6] = ripemd128 [7] = ripemd160 [8] = whirlpool [9] = tiger128,3 [10] = tiger160,3 [11] = tiger192,3 [12] = tiger128,4 [13] = tiger160,4 [14] = tiger192,4 [15] = snefru [16] = gost [17] = adler32 [18] = crc32 [19] = crc32b [20] = haval128,3 [21] = haval160,3 [22] = haval192,3 [23] = haval224,3 [24] = haval256,3 [25] = haval128,4 [26] = haval160,4 [27] = haval192,4 [28] = haval224,4 [29] = haval256,4 [30] = haval128,5 [31] = haval160,5 [32] = haval192,5 [33] = haval224,5 [34] = haval256,5 ) crypt関数 ?php // 暗号化する $cpt = crypt( "文字列" , "暗号化用文字列" ); // 結果出力 print($cpt);? cryptは、暗号化用文字列saltを指定することで暗号化方式を決定します。 引数を指定しない場合は標準のDESベースの暗号化となります。 ですが、標準のDESベースの暗号化の場合、文字列は8文字までしか使用しないため、 最初の8文字が同じ文字列は同じ暗号文が出力されてしまうので注意が必要です。 暗号化方式は以下のとおりです。 暗号化文字列が2文字の場合、標準のDESベース暗号化方式 暗号化文字列が9文字の場合、拡張のDESベース暗号化方式 暗号化文字列が12文字で bold(){$1$}で始まる場合、MD5暗号化方式 暗号化文字列が16文字で bold(){$2$}または bold(){$2a$}で始まる場合、Blowfish暗号化方式 セッション セッションの基本 ?php // セッション開始 session_start(); // セッション変数に値を格納 $_SESSION[ "num" ] = 1; $_SESSION[ "char" ] = c ; $_SESSION[ "string" ] = "test" ; $_SESSION[ "bool" ] = true; // 変数の破棄 unset($_SESSION[ "char" ]); // セッション変数の破棄 session_unset(); // セッション終了 session_destroy();? セッションは、ページ間に渡って特定のユーザであることを認識させるために用いられます。 一般に、ユーザがログインしていることを認識させるために使われます。 Smarty Smarty基本 ?php // Smartyのパスは環境により変わります。(Pearからインストールした場合、このパスになります) require_once "Pearified/Smarty/smarty.class.php" ; // Smartyオブジェクトの生成 function CreateSmartyObj() { $smarty = new Smarty(); // パスの設定 $smarty- template_dir = "template" ; // テンプレートディレクトリのパス $smarty- compile_dir = "compile" ; // コンパイルディレクトリのパス return $smarty;} $smarty = CreateSmartyObj(); // Smartyオブジェクトの生成 // 変数testにアボーン(´・ェ・`)を入れる $smarty- assign( "test" , "アボーン(´・ェ・`)" ); // テンプレートファイルを画面出力する $smarty- display( "index.tpl" );? テンプレートファイルの中身 html body test is {$test}. /body /html 実行結果 test is アボーン(´・ェ・`)
https://w.atwiki.jp/touhoukashi/pages/6297.html
【登録タグ CYTOKINE I ZYTOKINE aki リバースイデオロギー 曲 東方幻奏響UROBOROS肆 ~dEATHtINYoVERdRIVE~】 【注意】 現在、このページはJavaScriptの利用が一時制限されています。この表示状態ではトラック情報が正しく表示されません。 この問題は、以下のいずれかが原因となっています。 ページがAMP表示となっている ウィキ内検索からページを表示している これを解決するには、こちらをクリックし、ページを通常表示にしてください。 /** General styling **/ @font-face { font-family Noto Sans JP ; font-display swap; font-style normal; font-weight 350; src url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/10/NotoSansCJKjp-DemiLight.woff2) format( woff2 ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/9/NotoSansCJKjp-DemiLight.woff) format( woff ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/8/NotoSansCJKjp-DemiLight.ttf) format( truetype ); } @font-face { font-family Noto Sans JP ; font-display swap; font-style normal; font-weight bold; src url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/13/NotoSansCJKjp-Medium.woff2) format( woff2 ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/12/NotoSansCJKjp-Medium.woff) format( woff ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/11/NotoSansCJKjp-Medium.ttf) format( truetype ); } rt { font-family Arial, Verdana, Helvetica, sans-serif; } /** Main table styling **/ #trackinfo, #lyrics { font-family Noto Sans JP , sans-serif; font-weight 350; } .track_number { font-family Rockwell; font-weight bold; } .track_number after { content . ; } #track_args, .amp_text { display none; } #trackinfo { position relative; float right; margin 0 0 1em 1em; padding 0.3em; width 320px; border-collapse separate; border-radius 5px; border-spacing 0; background-color #F9F9F9; font-size 90%; line-height 1.4em; } #trackinfo th { white-space nowrap; } #trackinfo th, #trackinfo td { border none !important; } #trackinfo thead th { background-color #D8D8D8; box-shadow 0 -3px #F9F9F9 inset; padding 4px 2.5em 7px; white-space normal; font-size 120%; text-align center; } .trackrow { background-color #F0F0F0; box-shadow 0 2px #F9F9F9 inset, 0 -2px #F9F9F9 inset; } #trackinfo td ul { margin 0; padding 0; list-style none; } #trackinfo li { line-height 16px; } #trackinfo li nth-of-type(n+2) { margin-top 6px; } #trackinfo dl { margin 0; } #trackinfo dt { font-size small; font-weight bold; } #trackinfo dd { margin-left 1.2em; } #trackinfo dd + dt { margin-top .5em; } #trackinfo_help { position absolute; top 3px; right 8px; font-size 80%; } /** Media styling **/ #trackinfo .media th { background-color #D8D8D8; padding 4px 0; font-size 95%; text-align center; } .media td { padding 0 2px; } .media iframe nth-of-type(n+2) { margin-top 0.3em; } .youtube + .nicovideo, .youtube + .soundcloud, .nicovideo + .soundcloud { margin-top 0.75em; } .media_section { display flex; align-items center; text-align center; } .media_section before, .media_section after { display block; flex-grow 1; content ; height 1px; } .media_section before { margin-right 0.5em; background linear-gradient(-90deg, #888, transparent); } .media_section after { margin-left 0.5em; background linear-gradient(90deg, #888, transparent); } .media_notice { color firebrick; font-size 77.5%; } /** Around track styling **/ .next-track { float right; } /** Infomation styling **/ #trackinfo .info_header th { padding .3em .5em; background-color #D8D8D8; font-size 95%; } #trackinfo .infomation_show_btn_wrapper { float right; font-size 12px; user-select none; } #trackinfo .infomation_show_btn { cursor pointer; } #trackinfo .info_content td { padding 0 0 0 5px; height 0; transition .3s; } #trackinfo .info_content ul { padding 0; margin 0; max-height 0; list-style initial; transition .3s; } #trackinfo .info_content li { opacity 0; visibility hidden; margin 0 0 0 1.5em; transition .3s, opacity .2s; } #trackinfo .info_content.infomation_show td { padding 5px; height 100%; } #trackinfo .info_content.infomation_show ul { padding 5px 0; max-height 50em; } #trackinfo .info_content.infomation_show li { opacity 1; visibility visible; } #trackinfo .info_content.infomation_show li nth-of-type(n+2) { margin-top 10px; } /** Lyrics styling **/ #lyrics { font-size 1.06em; line-height 1.6em; } .not_in_card, .inaudible { display inline; position relative; } .not_in_card { border-bottom dashed 1px #D0D0D0; } .tooltip { display flex; visibility hidden; position absolute; top -42.5px; left 0; width 275px; min-height 20px; max-height 100px; padding 10px; border-radius 5px; background-color #555; align-items center; color #FFF; font-size 85%; line-height 20px; text-align center; white-space nowrap; opacity 0; transition 0.7s; -webkit-user-select none; -moz-user-select none; -ms-user-select none; user-select none; } .inaudible .tooltip { top -68.5px; } span hover + .tooltip { visibility visible; top -47.5px; opacity 0.8; transition 0.3s; } .inaudible span hover + .tooltip { top -73.5px; } .not_in_card span.hide { top -42.5px; opacity 0; transition 0.7s; } .inaudible .img { display inline-block; width 3.45em; height 1.25em; margin-right 4px; margin-bottom -3.5px; margin-left 4px; background-image url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2971/7/Inaudible.png); background-size contain; background-repeat no-repeat; } .not_in_card after, .inaudible .img after { content ; visibility hidden; position absolute; top -8.5px; left 42.5%; border-width 5px; border-style solid; border-color #555 transparent transparent transparent; opacity 0; transition 0.7s; } .not_in_card hover after, .inaudible .img hover after { content ; visibility visible; top -13.5px; left 42.5%; opacity 0.8; transition 0.3s; } .not_in_card after { top -2.5px; left 50%; } .not_in_card hover after { top -7.5px; left 50%; } .not_in_card.hide after { visibility hidden; top -2.5px; opacity 0; transition 0.7s; } /** For mobile device styling **/ .uk-overflow-container { display inline; } #trackinfo.mobile { display table; float none; width 100%; margin auto; margin-bottom 1em; } #trackinfo.mobile th { text-transform none; } #trackinfo.mobile tbody tr not(.media) th { text-align left; background-color unset; } #trackinfo.mobile td { white-space normal; } document.addEventListener( DOMContentLoaded , function() { use strict ; const headers = { title アルバム別曲名 , album アルバム , circle サークル , vocal Vocal , lyric Lyric , chorus Chorus , narrator Narration , rap Rap , voice Voice , whistle Whistle (口笛) , translate Translation (翻訳) , arrange Arrange , artist Artist , bass Bass , cajon Cajon (カホン) , drum Drum , guitar Guitar , keyboard Keyboard , mc MC , mix Mix , piano Piano , sax Sax , strings Strings , synthesizer Synthesizer , trumpet Trumpet , violin Violin , original 原曲 , image_song イメージ曲 }; const rPagename = /(?=^|.*